package com.dianping.cat.configuration.server.entity;

import com.dianping.cat.configuration.server.BaseEntity;
import com.dianping.cat.configuration.server.IVisitor;
import java.util.LinkedHashMap;
import java.util.Map;

public class ServerConfig
  extends BaseEntity<ServerConfig> {
/* 10 */   private Map<String, Server> m_servers = new LinkedHashMap();






/* 17 */   public void accept(IVisitor visitor) { visitor.visitServerConfig(this); }


  public ServerConfig addServer(Server server) {
/* 21 */     this.m_servers.put(server.getId(), server);
/* 22 */     return this;
  }


  public boolean equals(Object obj) {
/* 27 */     if (obj instanceof ServerConfig) {
/* 28 */       ServerConfig _o = (ServerConfig)obj;

/* 30 */       if (!equals(getServers(), _o.getServers())) {
/* 31 */         return false;
      }


/* 35 */       return true;
    }

/* 38 */     return false;
  }


/* 42 */   public Server findServer(String id) { return (Server)this.m_servers.get(id); }



/* 46 */   public Map<String, Server> getServers() { return this.m_servers; }





  public void mergeAttributes(ServerConfig other) {}



/* 63 */   public Server removeServer(String id) { return (Server)this.m_servers.remove(id); }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/configuration/server/entity/ServerConfig.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */